<extend name="Base/common"/>
<block name="header">
    <include file="Public/_navbar"/>
</block>
<block name="body">

    <include file="Public/_cat_header"/>
    <div class="container">

        <div class="col-xs-12 common_block_border">

            <div class="col-xs-2 " style="height: 700px;border-right: 1px solid #ddd">

                <include file="Center/_left"/>


            </div>


            <div class="col-xs-10" style="padding-top: 15px">
                <ul class="nav nav-pills ">
                    <li class="active">
                        <a href="{:U('cat/Center/rec')}">收到的信息</a>
                    </li>
                    <li><a href="{:U('cat/Center/send')}">发送的信息</a></li>
                    <li class="splitter"></li>
                    <li><a href="{:U('cat/Center/post')}">发送信息</a></li>
                </ul>

                <div class="clearfix"></div>
                <div class="underline_x"></div>
                <div class="mb10">
                    <div style="padding: 15px"></div>

                            <volist name="rec.data" id="vo"><div class="media">
                                <a class="pull-left" target="_blank" ucard="{$vo.user.uid}" href="{$vo.user.space_url}">
                                    <img class="media-object img-circle" title="{$vo.user.nickname}"
                                         src="{$vo.user.avatar64}">
                                </a>

                                <div class="media-body">
                                    <h4 class="media-heading"><a onclick="do_read(this,{$vo.id})"
                                                                 data-url="{:U('cat/Index/info',array('info_id'=>$vo['info_id']))}">{$vo.info.title|op_t}
                                        <if condition="$vo['readed']">
                                            <span class="cgrey">【已阅读】</span>
                                            <else/>
                                            <span>【未阅读】</span>
                                        </if>
                                    </a></h4>
                                    <p>
                                        <if condition="$vo['s_info_id']">
                                            <strong>来源信息：</strong>

                                            <a target="_blank"
                                               href="{:U('cat/Index/info',array('info_id'=>$vo['s_info_id']))}">{$vo.s_info.title|default=无来源信息}</a>
                                            <br/>
                                        </if>

                                        <strong>附言：</strong>{$vo.content|default=对方没有留下任何话哦}
                                        <br/>
                                        {$vo.create_time|friendlyDate}
                                    </p>
                                    </p>
                                </div>
                                <hr/> </div>
                            </volist>


                    <div class="page">{$rec.html}</div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
</block>